﻿using Himp.Outpatient;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;

namespace Himp.Platform.GraphQLs
{
    public class OtpInvoQuery : ISingletonDependency
    {
        private readonly IServiceProvider _serviceProvider;

        public OtpInvoQuery(IServiceProvider serviceProvider)
        {
            _serviceProvider = serviceProvider;
        }

        public async Task<PagedResultDto<InvoUsedRecDto>> GetInvUsedRecListAsync(InvoUsedRecInput input)
        {
            var invoUsedRecService = _serviceProvider.GetService<IInvoUsedRecService>();

            return await invoUsedRecService.GetListAsync(input);
        }
    }
}
